<template>
  <div class="box" />
  vue2
  <el-button type="primary" @click="handleClick">发射</el-button>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import mittBus from '@/utils/mitt'
const handleClick = () => {
    mittBus.emit('fashe', 'vue2发射')
    mittBus.on('login', res => {
        console.log(res)
    })
}
onMounted(() => {
    // mittBus.on('fashe', (res) => {
    //   console.log('vue2', res)
    // })
})
</script>

<style lang="less" scoped>
.box {
}
</style>
